package com.wgy.blog.common.exception;


import com.wgy.blog.common.enums.MessageEnum;

/**+++
 * @Author:Iny
 * @Data：2021/10/19 22:45
 */
public class MyException extends RuntimeException {

    /**
     * 错误提示
     */
    private String message;

    public MyException() {
        super();
    }

    public MyException(String message) {
        this.message = message;
    }

    public MyException(MessageEnum messageEnum) {
        this.message = messageEnum.getMessage();
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
